import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { ElCalendar } from 'element-plus'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'element-plus/lib/theme-chalk/index.css'
import icons from '@/icons' // icon
import locale from 'element-plus/lib/locale/lang/zh-cn'
import Collapse from './components/Collapse'
import ListItem from './components/ListItem'
import AddItem from './components/AddItem'

const app = createApp(App)

app.component('Collapse', Collapse)
app.component('ListItem', ListItem)
app.component('AddItem', AddItem)

app.use(icons).use(Vant).use(ElCalendar, { locale }).use(store).use(router).mount('#app')
